<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>机油保养</title>
  <style>
    *{
      padding: 0px;
      margin: 0px;
      list-style: none;
    }

    .left{
      float: left;
    }

    .right{
      float: right;
    }

    .clear{
      clear: both;
    }

    .maxbox{
      width: 100%;
    }

    .box{
      padding:3% 5%;
      width: 90%;
      margin-top: 10px;
    }

    .img{
      width: 36%;
    }

    .img img{
      width: 100%;
      height: 118px;
    }

    .miaoshu{
      width: 56%;
      margin-left: 10px;
    }
    
    a{
      color: black;
    }

    .huiyuan{
      color: red;
    }

    s{
      color: #ccc;
    }

    p{
      margin-top:6px;
    }

    .item_a:after {
        float: left;
        width: 100%;
        height: 1px;
        content: '';
        -webkit-transform: scaleY(.5);
        transform: scaleY(.5);
        background-color: #c8c7cc;
    }
  </style>
</head>
<body>
  <div class="maxbox">
    <ul>
      {foreach $jiyou as $vo}
      <a href="{:url('jiyou/item',['jid'=>$vo.id,'xid'=>$xiche.id])}" class="item_a">
        <li class="box">
          <div class="img left"> 
            <img src="{$vo.pic|getUrl}" alt="">
          </div>
          <div class="left miaoshu">
            <p>{$vo.name} {$vo.jibie}级 {$vo.niandu}机油 {$vo.guige}</p>
            <p>会员价：<span class="huiyuan">￥{$vo.huiyuan}</span> <s>原价：{$vo.mendian}</s></p>
            <p>{$xiche.name}</p>
          </div>
          <div class="clear"></div>
        </li>
      </a>
      
      {/foreach}
    </ul>
  </div>
</body>
</html>